package com.app.service.impl;

import com.app.mapper.ProgressMapper;
import com.app.model.ProgressModel;
import com.app.service.ProgressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProgressServiceImpl implements ProgressService {
    @Autowired
    private ProgressMapper progressMapper;

    @Override
    public void insert(ProgressModel progressModel) {
        progressMapper.insert(progressModel);
    }

    @Override
    public void update(ProgressModel progressModel) {
        progressMapper.updateById(progressModel);
    }

    @Override
    public void deleteProgressById(int id) {
        progressMapper.deleteById(id);
    }
}
